package com.kawa.kemanage.controller;

import com.github.pagehelper.PageInfo;
import com.kawa.kemanage.entity.NewsDetail;
import com.kawa.kemanage.service.CategoryService;
import com.kawa.kemanage.service.NewsService;
import com.kawa.kemanage.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * @Author: KAIyo
 * @Date: 2025/6/3 0:29
 * @Version: v1.0.0
 * @Description: TODO
 **/
@RestController
@RequestMapping("/cate")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @GetMapping("/category")
    public Result queryCate(){
        return Result.success(categoryService.queryCate());
    }

}
